package com.xyy.saas.payment.api.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xyy.saas.payment.cores.api.PinganLoanApi;
import com.xyy.saas.payment.cores.param.PinganLoanDetailVo;
import com.xyy.saas.payment.cores.param.PinganLoanMyLoanVo;
import com.xyy.saas.payment.cores.vo.PinganLoanDetailDto;
import com.xyy.saas.payment.cores.vo.PinganLoanMyLoanDto;
import com.xyy.saas.payment.cores.vo.ResultVO;
import com.xyy.saas.payment.payment.core.service.PinganLoanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0.0")
@Slf4j
public class PinganLoanApiImpl implements PinganLoanApi {
    @Autowired
    private PinganLoanService pinganLoanService;

    /**
     * 我的平安贷
     */
    @Override
    public ResultVO<PinganLoanMyLoanDto> myLoan(PinganLoanMyLoanVo param) {
        return pinganLoanService.myLoan(param);
    }

    /**
     * 平安贷明细
     */
    @Override
    public ResultVO<List<PinganLoanDetailDto>> loanDetail(PinganLoanDetailVo pinganLoanDetailVo) {
        return pinganLoanService.loanDetail(pinganLoanDetailVo);
    }

}
